<?php 
//open ss
//add class data
//creat $p-> 
session_start();
include "../mrga.php";
$p=new data();
// if(kt=true){thực hiện insert}
$id=$_POST['j_id'];
$p->idu_no_msg("DELETE FROM tb_product
					WHERE id_product='".$id."'");
//delete 8 im
unlink("../../../images/product/mga_prt/max_1_".$id.".jpg");
unlink("../../../images/product/mga_prt/max_2_".$id.".jpg");
unlink("../../../images/product/mga_prt/max_3_".$id.".jpg");
unlink("../../../images/product/mga_prt/max_4_".$id.".jpg");

unlink("../../../images/product/mga_prt/min_1_".$id.".jpg");
unlink("../../../images/product/mga_prt/min_2_".$id.".jpg");
unlink("../../../images/product/mga_prt/min_3_".$id.".jpg");
unlink("../../../images/product/mga_prt/min_4_".$id.".jpg");
?>

